package com.freewater.parking.infrastructure.db;

import com.freewater.parking.domain.blacklist.BlackList;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Entity
@Table(name = "black_list")
@Getter
@Setter
public class BlackListTable {

    @Id
    private String plateNumber;

    public BlackListTable() {

    }

    public BlackListTable(BlackList blackList) {
        this.plateNumber = blackList.getPlateNumber().getValue();
    }
}
